<?php
/**
 * CEOfox
 *
 * @copyright  Copyright 2011-2012 CEOfox, Inc.
 * @license    http://ceofox.com/pages/license
 * @version    $Id: blocker.html.php 67084 2013-05-24 09:40:17 $
 * @author     CEOfox, Inc.
 */
?>
<?php
    defined('PHPFOX') or exit('NO DICE!');
?>
{if count($aBlockers)}
    {if !PHPFOX_IS_AJAX}
        <div id="blocker_{$sType}" {if $sFullControllerName == 'follow.index'}style="display: none;"{/if}>
        <div class="table_header">{phrase var='follow.block'}</div>
    {/if}
    {foreach from=$aBlockers item=aBlocker name=blocker}        
        <div id="js_blocker_{$aBlocker.user_id}" class="blocker_row_holder js_selector_class_{$aBlocker.user_id} {if is_int($phpfox.iteration.blocker/2)}row1{else}row2{/if}{if $phpfox.iteration.blocker == 1 && !PHPFOX_IS_AJAX} row_first{/if}">
            <div class="friend_image" id="js_image_div_{$aBlocker.user_id}">    
                {img id='sJsUserImage_'$aBlocker.user_id'' user=$aBlocker suffix='_50_square' max_width=50 max_height=50}
            </div>
            <div class="friend_user_name">
                {$aBlocker|user:'':'':50} 
            </div>
            <a class="follow-inline-btn unblock_{$sType}_{$aBlocker.user_id}" href="{url link='follow.unblock' id=$aBlocker.user_id type=$sType oid=$aItem.item_id}"><span class="unblock follow-button" style="float:right">{phrase var='follow.unblock'}</span></a>
            <a style="display: none;" class="follow-inline-btn block_{$sType}_{$aBlocker.user_id}" href="{url link='follow.block' id=$aBlocker.user_id type=$sType oid=$aItem.item_id}"><span class="unblock follow-button" style="float:right">{phrase var='follow.block'}</span></a>
        </div>
    {/foreach}
    </div>
    {if !PHPFOX_IS_AJAX}
        {if $iCurrentBlocker < $iTotalBlocker}
            <div id="js_pager_view_more_link_{$sBlockType}" class="js_pager_view_more_link" {if $sFullControllerName == 'follow.index'}style="display: none;"{/if}>
                <div class="pager_view_more_holder">
                    <div class="feed_view_more">
                        <input id="follow_page_view_blocker" type="hidden" name="page" value="2">
                        <input id="current_blocker" type="hidden" value="{$iCurrentBlocker}">
                        <input id="total_blocker" type="hidden" value="{$iTotalBlocker}">
                        <input id="follow_page_item_id" type="hidden" name="user_id" value="{$aItem.item_id}">
                        <input id="follow_module_id" type="hidden" name="follow_module_id" value={$sType}>
                        <input id="follow_keyword" type="hidden" name="follow_keyword" value={$sKeyword}>
                        <a class="global_view_mores no_ajax_link" href="#" onclick="$Core.follow.viewMore('blocker');return false;">{phrase var='follow.view_more'}</a>
                    </div>
                </div>
            </div>
        {/if}
    {/if}
{else}
    {if $sFullControllerName != 'follow.index'}
        <div class="extra_info">
            {phrase var='follow.no_result_s_found'}
        </div>
    {/if}
{/if}

{if PHPFOX_IS_AJAX}
    <script type="text/javascript">
        $Core.follow.updateCurrent('{$sBlockType}', {$iCurrentBlocker});
        $Core.follow.setPage('{$iPage}','{$sBlockType}');
    </script>
{/if}


